<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateTaskTagsTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('task_tags', function(Blueprint $table)
		{
            $table->engine = 'InnoDB';
			$table->uuid('id')->primary ('id');
			$table->uuid('task_id');
			$table->string('tag_name', 50)->nullable()->comment('标签名称');
			$table->integer('created_uid')->unsigned()->nullable();
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('task_tags');
	}

}
